 // 差旅费报销打印效果
 function printpage() {
    event.preventDefault();
    html2canvas(document.getElementById("containerPrint"), {
      allowTaint: true,
      taintTest: false,
      onrendered: function (canvas) {
        canvas.id = "mycanvas";
        //生成base64图片数据    
        var dataUrl = canvas.toDataURL();
        var newImg = document.createElement("img");
        newImg.id = "printImg";
        newImg.src = dataUrl;
        $('.printImg').show();
        document.getElementById('printImgBox').appendChild(newImg);
        $('#printImg').jqprint({
          debug: false,
          importCSS: true,
          printContainer: true,
          operaSupport: false
        });
      }
    })
  }